package com.linkage.usercenter.dao;

import com.linkage.usercenter.pojo.entity.CoreRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CoreRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CoreRole record);

    int insertSelective(CoreRole record);

    CoreRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CoreRole record);

    int updateByPrimaryKey(CoreRole record);

    List<CoreRole> queryRoleInfosByUserCode(String userCode);

    List<CoreRole> queryRoleInfosByRoleStaus(String roleType);

    List<CoreRole> queryALLRoleInfos();

    List<CoreRole> queryRecordsByOwer(String userCode);

    void deleteByRoleCodeList(Map<String, Object> roleMap);

    CoreRole getByRoleCode(String roleCode);
}